<template>
  <div class="check-selection">
    <div class="checkbox-wrapper">
      <div class="check-tip">
        <span class="label">{{ label }}</span>
        <span class="title">{{ value ? '显示' : '不显示' }}</span>
      </div>
      <div class="checkbox-container">
        <input type="checkbox" v-model="value">
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'CheckSelection',
    props: {
      label: {
        type: String,
        default: ''
      },
      value: {
        type: Boolean,
        default: false
      }
    }
  }
</script>

<style lang="less" scoped>

</style>
